package com.hp.bon.sgw.core.processor;

import static com.hp.bon.sgw.Constants.LOG;

import com.hp.bon.sgw.core.CallParam;

public abstract class Processor implements Cloneable {

	public abstract int process(CallParam callParam);// -1 not ok

	/**
	 * handleAnswer时，CallParam入队列，进行详单入库
	 * 
	 * @param callParam
	 * @return
	 */
	public abstract int endProcess(CallParam callParam);

	public Object clone() {
		Object o;
		try {
			o = super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			LOG.error("CloneNotSupportedException:" + e.getMessage(), e);
		}
		return 0;
	}
}
